package com.taijihuabao.modules.service;

import com.taijihuabao.modules.entity.ReimbursementEntity;
import com.taijihuabao.modules.model.reimbursement.ReimbursementExportDTO;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author luoxianan
 */
public interface ReimbursementService {
    /**
     * 导入报销单数据
     *
     * @param reimbursementEntity
     */
    void insertExpense(ReimbursementEntity reimbursementEntity);

    /**
     * 导出全部数据
     *
     * @return
     */
    void selectAll(HttpServletResponse response, ReimbursementExportDTO reimbursementExportDTO) throws IOException;

    /**
     * 按月导出
     *
     * @param response
     * @param reimbursementExportDTO
     * @return
     * @throws IOException
     */
    void selectByMonth(HttpServletResponse response, ReimbursementExportDTO reimbursementExportDTO) throws IOException;

    /**
     * 按周导出
     * @param response
     * @param reimbursementExportDTO
     * @throws IOException
     */
    void selectByWeek(HttpServletResponse response, ReimbursementExportDTO reimbursementExportDTO) throws IOException;
}